From f71831c7809b8def726373ec0a7d36bb3f82ab5e Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 25 Nov 2014 00:14:47 -0500 Subject: [PATCH] GtkStack: silently ignore visible-child-name set to NULL This can happen when loading empty stacks in glade. --- gtk/gtkstack.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gtk/gtkstack.c b/gtk/gtkstack.c index 130426c582..9726beddb4 100644 --- a/gtk/gtkstack.c +++ b/gtk/gtkstack.c @@ -1701,7 +1701,9 @@ gtk_stack_set_visible_child_full (GtkStack *stack, GList *l; g_return_if_fail (GTK_IS_STACK (stack)); - g_return_if_fail (name != NULL); + + if (name == NULL) + return; child_info = NULL; for (l = priv->children; l != NULL; l = l->next) -- 2.30.2